﻿package  {
	import flash.display.MovieClip;
	
	public class enemies extends MovieClip {

		var type:int;
		var vel_x:int;
		var vel_y:int;
		var dmg:int;
		var hp:int;
		var invencible:Boolean;
		

		public function object(_type:int, v_x:int, v_y:int, pos_x:int, pos_y:int, _dmg:int, _hp:int, _invencible:Boolean) {
			// constructor code
			type=_type;
			this.x=pos_x;
			this.y=pos_y;
			vel_x=v_x;
			vel_y=v_y;
			dmg=_dmg;
			hp=_hp;
			invencible=_invencible;
		}
		
		public function update(){
			this.x+=vel_x;
			this.y+=vel_y;
		}

	}
	
}
